<?php
/**
 * Project: Recipe
 * File: FoodDealModel.class.php
 * Author: Xnfy520@gmail.com
 * Date: 12-5-22
 * Time: 下午2:20
 */

class FoodDealModel extends RelationModel{

	protected $_link = array(
		'SetDeal'=>array(
			'mapping_type'=>BELONGS_TO,
			'mapping_name'=>'setdeal',
			'class_name'=>'SetDeal',
			'foreign_key'=>'unit',
			//	'mapping_fields'=>'unit,deal',
		),

//		'Food'=>array(
//
//		),

//		'FoodNutritions'=>array(
//			'mapping_type'=>BELONGS_TO,
//			'mapping_name'=>'foodnutritions',
//			'class_name'=>'FoodNutritions',
//			'foreign_key'=>'articleid',
//
//			//	'mapping_fields'=>'unit,deal',
//		),
	);

}